HTML | 您所在的位置:网站首页 › HTML <img> src Attribute › HTML |
The HTML src Attribute is used to specify the URL of external JavaScript file. The External JavaScript file is used to run on the same script on several pages on a website. We can save the JavaScript file with an extension of .js. We can refer the external script using the src attribute of the element. Syntax: Attribute Values: It contains single value URL which specifies the URL of the external JavaScript file. There are two types of URL link which are listed below: Absolute URL: It points to another webpage. Relative URL: It points to other files of the same web page.Below example illustrates the src attribute in HTML: Example: HTML
HTML script src Attribute GeeksForGeeks HTML script src Attribute Submit Output :
Supported Browsers: The browser supported by HTML src attribute are listed below: Google Chrome 1 and above Edge 12 and above Firefox 1 and above Internet Explorer Safari OperaM ManasChhabra2 Improve Next Article HTML | type Attribute Please Login to comment... |
CopyRight 2018-2019 实验室设备网 版权所有 |